package com.smmisia.common.request.auth;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Getter;
import lombok.Setter;

/**
 * @author: smmisia
 * @date: 2023-09-08
 * @description: 邮箱验证码请求参数
 */
@Setter
@Getter
public class CodeRequest {

    @NotBlank(message = "邮箱不能为空")
    @Pattern(
            regexp = "^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$",
            message = "邮箱格式不正确"
    )
    private String email;
}
